﻿<Page
    x:Class="PathTextBlockSample.BlankPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:PathTextBlockSample"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" xmlns:brg="using:BlueRoseGames.Controls.Text">

    <Canvas Background="{StaticResource ApplicationPageBackgroundBrush}">
        <Canvas.RenderTransform>
            <ScaleTransform ScaleX="1" ScaleY="1"/>
        </Canvas.RenderTransform>
        <brg:PathTextBlock x:Name="tb" Font="JellyBelly70.xfn" Stroke="Red" Fill="White" StrokeThickness="1" FontSize="100" UpdateIntervalSeconds=".02">
            <brg:PathTextBlock.TextTransform>
                <brg:TransformGroup>
                    <brg:TransformGroup.Children>
                        <brg:SineTransform StartAngle="0" Amplitude="30" Period="250"/>
                        <brg:PolarTransform Angle="180" CenterX="700" CenterY="400" RadiusX="500" RadiusY="400" RadiusStretch="1.6" AngleStretch=".4" TextDirection="Clockwise"/>
                    </brg:TransformGroup.Children>
                </brg:TransformGroup>
            </brg:PathTextBlock.TextTransform> 
        </brg:PathTextBlock>
    </Canvas>
</Page>
